<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ include file="../../../common/common-easyui.jspf" %>
<!DOCTYPE html >
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
</head>
<body>
<div style="width:600px;padding:30px 60px;">
    <form id="fff" method="post" action="groupPaperController?flag=autoRule">
        <div style="margin-bottom:20px">
            <input class="easyui-textbox" name="totalScore" style="width:38%" data-options="label:'试题总分:'">
        </div>
        <div style="margin-bottom:20px">
            <input class="easyui-textbox" id="single" name="singleNumber" style="width:40%"
                   data-options="label:'单选题数:',prompt:'请输入单选题数'">
            <input class="easyui-textbox" id="singleScore" name="scScore" style="width:30%" data-options="label:'总分数:'">
        </div>
        <div style="margin-bottom:20px">
            <input class="easyui-textbox" id="multiple" name="multipleNumber" style="width:40%"
                   data-options="label:'多选题数:',prompt:'请输入多选题数'">
            <input class="easyui-textbox" id="multipleScore" name="mulScore" style="width:30%"
                   data-options="label:'总分数:'">
        </div>
        <div style="margin-bottom:20px">
            <input class="easyui-textbox" id="blank" name="blankNumber" style="width:40%"
                   data-options="label:'填空题数:',prompt:'请输入填空题数'">
            <input class="easyui-textbox" id="blankScore" name="blankScore" style="width:30%"
                   data-options="label:'总分数:'">
        </div>
        <div style="margin-bottom:20px">
            <input class="easyui-textbox" id="judge" name="judgeNumber" style="width:40%"
                   data-options="label:'判断题数:',prompt:'请输入判断题数'">
            <input class="easyui-textbox" id="judgeScore" name="judgeScore" style="width:30%"
                   data-options="label:'总分数:'">
        </div>
        <div style="margin-bottom:20px">
            <input class="easyui-textbox" id="subjective" name="subjectiveNumber" style="width:40%"
                   data-options="label:'主观题数:',prompt:'请输入主观题数'">
            <input class="easyui-textbox" id="subjectiveScore" name="subjectiveScore" style="width:30%"
                   data-options="label:'总分数:'">
        </div>
    </form>
    <div style="text-align:center;padding:5px 0">
        <a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm('fff')" style="width:80px"> 确 认 </a>
        <a href="javascript:void(0)" class="easyui-linkbutton" onclick="clearForm('fff')" style="width:80px"> 清 空 </a>
    </div>
</div>
<script type="text/javascript">
    //提交表单数据
    function submitForm() {
        $('#fff').form('submit', {
            success: function (result) {
                if (result > 0) {
                    $.messager.alert("提示", "组卷成功", "info");
                }
            }
        });
    }
    //清除表单内容
    function clearForm() {
        $('#fff').form('clear');
    }
</script>
</body>
</html>